package com.yunhe.day322.service;

import com.yunhe.day322.domain.Permission;
import com.yunhe.day322.domain.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll(int page,int size);

    void save(Role role);

    Role findById(int id);

    List<Permission> findOtherPermission(int id);

    void addPermissionToRole(int roleid, int[] ids);

    void deleteRole(int id);
}
